<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Returns all consts (possible values) as an array.</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.splenum.html">SplEnum</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.splbool.html">SplBool</a></div>
 <div class="up"><a href="class.splenum.html">SplEnum</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="splenum.getconstlist" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SplEnum::getConstList</h1>
  <p class="verinfo">(PECL spl_types &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">SplEnum::getConstList</span> &mdash; <span class="dc-title">Returns all consts (possible values) as an array.</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-splenum.getconstlist-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><strong>SplEnum::getConstList</strong></span>
    ([ <span class="methodparam"><span class="type">bool</span> <code class="parameter">$include_default</code><span class="initializer"> = false</span></span>
  ] )</div>

  <p class="para rdfs-comment">

  </p>

  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">本函数还未编写文档，仅有参数列表。</p></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-splenum.getconstlist-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<em><code class="parameter">include_default</code></em></dt>

    <dd>

     <p class="para">
      Whether to include <em>__default</em> property.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-splenum.getconstlist-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">

  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-splenum.getconstlist-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-3907">
    <p><strong>Example #1 <span class="function"><strong>SplEnum::getConstList()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$bool&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">SplBool</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$bool</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getConstList</span><span style="color: #007700">(</span><span style="color: #0000BB">true</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

    <div class="example-contents"><p>以上例程会输出：</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
array(3) {
  [&quot;__default&quot;]=&gt;
  bool(false)
  [&quot;false&quot;]=&gt;
  bool(false)
  [&quot;true&quot;]=&gt;
  bool(true)
}
</pre></div>
    </div>
   </div>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.splenum.html">SplEnum</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.splbool.html">SplBool</a></div>
 <div class="up"><a href="class.splenum.html">SplEnum</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
